﻿using System;
using System.Windows;
using Microsoft.Phone.Controls;
using WindowsPhoneMvp;
using WindowsPhoneMvp.Phone;

namespace $safeprojectname$.Views.Main
{
    [PresenterBinding(typeof(MainPresenter))]
    public partial class MainView : MvpPhoneApplicationPage, IMainView
    {
        public event EventHandler LaunchingCamera;

        public MainViewModel Model
        {
            get { return this.Model(); }
        }

        public MainView()
        {
            InitializeComponent();
        }

        private void CameraButton_Click(object sender, RoutedEventArgs e)
        {
            LaunchingCamera(sender, EventArgs.Empty);
        }

        private void ViewTwoButton_Click(object sender, RoutedEventArgs e)
        {
            Model.NavigatingToViewTwo.Execute(null);
        }
    }
}